package com.zmsoft.persistent.sfg.Sfg662041GameCropsGrow;

import org.cnsoft.framework.db.manager.MyDBTableSQLSupport;
import org.springframework.stereotype.Component;

/**
 * 物品阶段配置信息-自动触发建表语句
 */
@Component("Sfg662041GameCropsGrowSQL")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Sfg662041GameCropsGrowSQL extends MyDBTableSQLSupport {
	// 表名
	public String getTableName() {
		return "sfg662041_game_crops_grow";
	}

	// 获得SQL内容
	public String getSQL() throws Exception {
		StringBuilder sqlStringBuilder = new StringBuilder();// 临时变量

		sqlStringBuilder.append("CREATE TABLE sfg662041_game_crops_grow");
		sqlStringBuilder.append("(");
		sqlStringBuilder.append("    id VARCHAR(64) NOT NULL COMMENT '流水ID',");
		sqlStringBuilder.append("    game_type VARCHAR(4) COMMENT '游戏分类(1农场2牧场3鱼塘4工坊)',");
		sqlStringBuilder.append("    game_name VARCHAR(20) COMMENT '游戏名称',");
		sqlStringBuilder.append("    crops_id VARCHAR(64) COMMENT '物品ID',");
		sqlStringBuilder.append("    crops_name VARCHAR(128) COMMENT '物品名称',");
		sqlStringBuilder.append("    stage_sort BIGINT(10) DEFAULT '1' COMMENT '阶段序号',");
		sqlStringBuilder.append("    stage_name VARCHAR(128) COMMENT '阶段名称',");
		sqlStringBuilder.append("    stage_pic_url VARCHAR(400) COMMENT '阶段图片',");
		sqlStringBuilder.append("    action_flag VARCHAR(4) DEFAULT '1' COMMENT '阶段互动开关（1无2有）',");
		sqlStringBuilder.append("    action_ids VARCHAR(400) COMMENT '阶段互动配置ID组合',");
		sqlStringBuilder.append("    need_time BIGINT(10) COMMENT '需要时间(秒)',");
		sqlStringBuilder.append("    left_watering BIGINT(10) DEFAULT '0' COMMENT '剩余浇水数目',");
		sqlStringBuilder.append("    left_weeding BIGINT(10) DEFAULT '0' COMMENT '剩余除草数目',");
		sqlStringBuilder.append("    left_insect BIGINT(10) DEFAULT '0' COMMENT '剩余杀虫数目',");
		sqlStringBuilder.append("    left_fertilize BIGINT(10) DEFAULT '0' COMMENT '剩余施肥数目',");
		sqlStringBuilder.append("    crops_exp BIGINT(10) DEFAULT '0' COMMENT '可以获得经验数目',");
		sqlStringBuilder.append("    memo VARCHAR(200) COMMENT '备注',");
		sqlStringBuilder.append("    fb1 VARCHAR(40) COMMENT '备用1',");
		sqlStringBuilder.append("    fb2 VARCHAR(20) COMMENT '备用2',");
		sqlStringBuilder.append("    fb3 VARCHAR(50) COMMENT '备用3',");
		sqlStringBuilder.append("    fb4 VARCHAR(200) COMMENT '备用4',");
		sqlStringBuilder.append("    fb5 VARCHAR(80) COMMENT '备用5',");
		sqlStringBuilder.append("    eb1 VARCHAR(40) COMMENT '扩展1',");
		sqlStringBuilder.append("    eb2 VARCHAR(80) COMMENT '扩展2',");
		sqlStringBuilder.append("    eb3 VARCHAR(20) COMMENT '扩展3',");
		sqlStringBuilder.append("    eb4 VARCHAR(10) COMMENT '扩展4',");
		sqlStringBuilder.append("    eb5 VARCHAR(20) COMMENT '扩展5',");
		sqlStringBuilder.append("    sid VARCHAR(20) COMMENT '数据归属系统',");
		sqlStringBuilder.append("    del_flag CHAR(1) DEFAULT '0' COMMENT '有效标识',");
		sqlStringBuilder.append("    create_time VARCHAR(24) DEFAULT '2018-02-02' NOT NULL COMMENT '创建时间',");
		sqlStringBuilder.append("    creator VARCHAR(64) DEFAULT 'SYSTEM' NOT NULL COMMENT '创建者',");
		sqlStringBuilder.append("    update_time VARCHAR(24) COMMENT '更新时间',");
		sqlStringBuilder.append("    updator VARCHAR(64) COMMENT '最后更新者',");
		sqlStringBuilder.append("  PRIMARY KEY (id)");
		sqlStringBuilder.append(") COMMENT '物品阶段配置信息-自动触发';");

		return sqlStringBuilder.toString();
	}

}
